﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DarkAjax.Utility
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple=false,Inherited=false)]
    public class jQueryInvokeMethodAttribute : Attribute
    {
        /// <summary>
        /// ajax url
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 是否异步，default=false;
        /// </summary>
        public bool Async { get; set; }
        public string Method { get; set; } //get post
        public bool Cache { get; set; }
        public string DataType { get; set; } //text  json  xml

        public jQueryInvokeMethodAttribute()
        {
            this.Url = string.Empty;
            this.Async = false;
            this.Method = "GET";
            this.Cache = false;
            this.DataType = "text";
        }
    }
}
